package com.qianclass.talklive.app.bean;

import java.util.List;

public class WhiteBoardBody {


	/**
	 * message: {"type":"whiteboard","whiteboard":{"colour":"0XFF0000","currentpage":1,"docserver":"http://xxx:8080/","filedir":"","fileid":1235,"filename":"ST_level1_U1-L2.pdf","imageurl":"","linewidth":3,"objdata":[{"x":301,"y":459},{"x":301,"y":458},{"x":318,"y":456},{"x":368,"y":456},{"x":471,"y":461},{"x":581,"y":466},{"x":625,"y":466},{"x":648,"y":466}],"objid":259370616,"objtype":"pen","pagenum":11,"pointcount":8,"rect":{"bottom":466,"left":301,"right":648,"top":456},"sqlid":"","subcommand":"addobject"}}
	 */

	private MessageBean message;

	public MessageBean getMessage() {
		return message;
	}

	public void setMessage(MessageBean message) {
		this.message = message;
	}

	public static class MessageBean {
		/**
		 * type : whiteboard
		 * whiteboard : {"colour":"0XFF0000","currentpage":1,"docserver":"http://xxx:8080/","filedir":"","fileid":1235,"filename":"ST_level1_U1-L2.pdf","imageurl":"","linewidth":3,"objdata":[{"x":301,"y":459},{"x":301,"y":458},{"x":318,"y":456},{"x":368,"y":456},{"x":471,"y":461},{"x":581,"y":466},{"x":625,"y":466},{"x":648,"y":466}],"objid":259370616,"objtype":"pen","pagenum":11,"pointcount":8,"rect":{"bottom":466,"left":301,"right":648,"top":456},"sqlid":"","subcommand":"addobject"}
		 */

		private String type;
		private WhiteboardBean whiteboard;

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		public WhiteboardBean getWhiteboard() {
			return whiteboard;
		}

		public void setWhiteboard(WhiteboardBean whiteboard) {
			this.whiteboard = whiteboard;
		}

		public static class WhiteboardBean {
			/**
			 * colour : 0XFF0000
			 * currentpage : 1
			 * docserver : http://xxx:8080/
			 * filedir :
			 * fileid : 1235
			 * filename : ST_level1_U1-L2.pdf
			 * imageurl :
			 * linewidth : 3
			 * objdata : [{"x":301,"y":459},{"x":301,"y":458},{"x":318,"y":456},{"x":368,"y":456},{"x":471,"y":461},{"x":581,"y":466},{"x":625,"y":466},{"x":648,"y":466}]
			 * objid : 259370616
			 * objtype : pen
			 * pagenum : 11
			 * pointcount : 8
			 * rect : {"bottom":466,"left":301,"right":648,"top":456}
			 * sqlid :
			 * shapetype: ""
			 * subcommand : addobject
			 */

			private String colour;
			private int               currentpage;
			private String            docserver;
			private String            filedir;
			private int               fileid;
			private String            filename;
			private String            imageurl;
			private int               linewidth;
			private int               objid;
			private String            objtype;
			private int               pagenum;
			private int               pointcount;
			private RectBean          rect;
			private String            sqlid;
			private String            subcommand;
			private String			  shapetype;
			private List<ObjdataBean> objdata;

			public String getShapetype() {
				return shapetype;
			}

			public void setShapetype(String shapetype) {
				this.shapetype = shapetype;
			}

			public String getColour() {
				return colour;
			}

			public void setColour(String colour) {
				this.colour = colour;
			}

			public int getCurrentpage() {
				return currentpage;
			}

			public void setCurrentpage(int currentpage) {
				this.currentpage = currentpage;
			}

			public String getDocserver() {
				return docserver;
			}

			public void setDocserver(String docserver) {
				this.docserver = docserver;
			}

			public String getFiledir() {
				return filedir;
			}

			public void setFiledir(String filedir) {
				this.filedir = filedir;
			}

			public int getFileid() {
				return fileid;
			}

			public void setFileid(int fileid) {
				this.fileid = fileid;
			}

			public String getFilename() {
				return filename;
			}

			public void setFilename(String filename) {
				this.filename = filename;
			}

			public String getImageurl() {
				return imageurl;
			}

			public void setImageurl(String imageurl) {
				this.imageurl = imageurl;
			}

			public int getLinewidth() {
				return linewidth;
			}

			public void setLinewidth(int linewidth) {
				this.linewidth = linewidth;
			}

			public int getObjid() {
				return objid;
			}

			public void setObjid(int objid) {
				this.objid = objid;
			}

			public String getObjtype() {
				return objtype;
			}

			public void setObjtype(String objtype) {
				this.objtype = objtype;
			}

			public int getPagenum() {
				return pagenum;
			}

			public void setPagenum(int pagenum) {
				this.pagenum = pagenum;
			}

			public int getPointcount() {
				return pointcount;
			}

			public void setPointcount(int pointcount) {
				this.pointcount = pointcount;
			}

			public RectBean getRect() {
				return rect;
			}

			public void setRect(RectBean rect) {
				this.rect = rect;
			}

			public String getSqlid() {
				return sqlid;
			}

			public void setSqlid(String sqlid) {
				this.sqlid = sqlid;
			}

			public String getSubcommand() {
				return subcommand;
			}

			public void setSubcommand(String subcommand) {
				this.subcommand = subcommand;
			}

			public List<ObjdataBean> getObjdata() {
				return objdata;
			}

			public void setObjdata(List<ObjdataBean> objdata) {
				this.objdata = objdata;
			}

			public static class RectBean {
				/**
				 * bottom : 466
				 * left : 301
				 * right : 648
				 * top : 456
				 */

				private float bottom;
				private float left;
				private float right;
				private float top;

				public float getBottom() {
					return bottom;
				}

				public void setBottom(float bottom) {
					this.bottom = bottom;
				}

				public float getLeft() {
					return left;
				}

				public void setLeft(float left) {
					this.left = left;
				}

				public float getRight() {
					return right;
				}

				public void setRight(float right) {
					this.right = right;
				}

				public float getTop() {
					return top;
				}

				public void setTop(float top) {
					this.top = top;
				}
			}

			public static class ObjdataBean {
				/**
				 * x : 301
				 * y : 459
				 */

				private float x;
				private float y;

				public float getX() {
					return x;
				}

				public void setX(float x) {
					this.x = x;
				}

				public float getY() {
					return y;
				}

				public void setY(float y) {
					this.y = y;
				}
			}
		}
	}
}
